<template>
  <div class="index">
    欢迎登陆
    <router-view></router-view>
    <div>
        <button @click="loginSuccess">登陆成功</button>
    </div>
  </div>
</template>

<script setup>
function loginSuccess(){
  window.api.loginSuccess('hahah')
}
</script>

<script>
export default {
  name: "index"
}
</script>


<style scoped>
.index{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>